import Service from '../util/server'

export function getLink(url){
    return new Promise((resolve,reject)=>{
        Service.request({
            url,
            method:'GET'
        }).then((ok)=>{
            resolve(ok)
        }).catch((err)=>{
            reject(err)
        })
    })
}